//
//  TableViewController.m
//  iCodeMac
//
//  Created by Andrew Barry on 27/05/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "TableViewController.h"


@implementation TableViewController
-(void) awakeFromNib {
	[self bindText:nameControl toProperty:@"name"];
	
	[self bindInt:leftControl toProperty:@"left"];
	[self bindInt:topControl toProperty:@"top"];
	[self bindInt:widthControl toProperty:@"width"];
	[self bindInt:heightControl toProperty:@"height"];
	
	[self bindCheckbox:lockLeft toProperty:@"lockLeft"];
	[self bindCheckbox:lockTop toProperty:@"lockTop"];
	[self bindCheckbox:lockRight toProperty:@"lockRight"];
	[self bindCheckbox:lockBottom toProperty:@"lockBottom"];
	
	[self bindCheckbox:visibleControl toProperty:@"visible"];

	[self bindText:columnsControl toProperty:@"columns"];
	[self bindCheckbox:visibleHeader toProperty:@"visibleHeader"];
	[self bindCheckbox:columnReordering toProperty:@"columnReordering"];
	[self bindCheckbox:columnResizing toProperty:@"columnResizing"];
	[self bindCheckbox:multipleSelection toProperty:@"multipleSelection"];
	[self bindCheckbox:emptySelection toProperty:@"emptySelection"];

	[self bindDataSource:dataSourceControl toProperty:@"dataSource"];
	[self bindText:dataFieldControl toProperty:@"dataField"];
}

@end
